project(sandbox)

add_subdirectory(core)
add_subdirectory(process)

add_executable(sandbox Sandbox.cpp)

target_include_directories(sandbox PUBLIC ${PROCESS_DIR})
target_link_libraries(sandbox PUBLIC process)

# Reference SDL & glm
target_include_directories(sandbox PRIVATE "${SDL_DIR}/include")						   
target_link_directories(sandbox PRIVATE "${SDL_DIR}/lib")
target_link_libraries(sandbox PRIVATE SDL3)
target_include_directories(sandbox PRIVATE ${GLM_DIR}/glm)
# Copy sdl library
# copy dll
add_custom_command(
		TARGET sandbox POST_BUILD
		COMMAND ${CMAKE_COMMAND} -E copy_if_different
			"${SDL_DIR}/bin/SDL3.dll"
			$<TARGET_FILE_DIR:sandbox>
)